package zhengzhou

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func IndexPage(c *gin.Context) {
	requestMethod := c.Request.Method
	println("requestMethod:", requestMethod)
	if requestMethod == "GET" {
		c.HTML(http.StatusOK, "zhengzhou.html", gin.H{
			"title": "zhengzhou",
		})
	} else if requestMethod == "POST" {
		c.JSON(http.StatusOK, gin.H{
			"code": 500,
			"msg":  "还没开发完呢",
		})
	}

}
